#ifndef __AT24CXX_H__
#define __AT24CXX_H__

#include <string.h>

#include "heap.h"
#include "ipc.h"
#include "device.h"

#include "i2c_bus.h"

#ifdef __cplusplus
extern "C" {
#endif

#define AT24C_MAGIC 0x61743234

typedef struct{
    mt_i2c_client_t parent;
    mt_uint16_t size;
}at24cxx_t;


mt_err_t at24cxx_register(mt_uint16_t size, mt_uint8_t slave_addr, const char *at24c_name, const char *bus_name);

#ifdef __cplusplus
}
#endif

#endif
